package com.itheima.mongodb.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder

@Document(collection = "abcuser")
public class User {
    //int类型在不设置id时添加会报错
    //private int id;
    private String id;
    private String username;
    private String password;
    private Integer age;
    private Date birthday;

}
